package virtorina.client.room.dto;

import java.io.Serializable;
import java.util.Date;

public class ChatMsgDTO implements Serializable {
	public ChatMsgDTO() {
	}

	private static final long serialVersionUID = 1L;
	private String msgID;
	private Long roomID;
	private String msg;
	private UserDTO user;
	private Date date;
	
	public ChatMsgDTO(Long roomID, String msg, 
			Long userID, String userName, Date date) {
		this.roomID = roomID;
		this.msg = msg;
		this.user = new UserDTO(userID, userName);
		this.date = date;
	}
	public String getMsgID() {
		return msgID;
	}

	public void setMsgID(String msgID) {
		this.msgID = msgID;
	}

	public Long getRoomID() {
		return roomID;
	}

	public void setRoomID(Long roomID) {
		this.roomID = roomID;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public UserDTO getUser() {
		return user;
	}

	public void setUser(UserDTO user) {
		this.user = user;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

}
